package com.acaomei.skype.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

import com.acaomei.skype.entity.User;

@Controller    
@RequestMapping("/login") 
public class LoginController {
	
	@RequestMapping("/loginView.do")    
    public String userList(User user,Model model){    
        return "login";    
    }
	
	@RequestMapping("/loginOut.web")    
    public String loginOut(String username,String password,Model model){    
        return "baseView/frameView";    
    }
	
	@RequestMapping(value = "/loginTest.do" , method = RequestMethod.POST)
	@ResponseBody
	public String loginTest(){
		return "aa";
	}
}